package com.xb.loan.cashier.biz.dao;


import com.xb.loan.cashier.biz.dao.bean.CashierPayChannelBank;
import com.xb.loan.util.mybatis.MyBatisRepository;

import java.util.List;
import java.util.Map;

@MyBatisRepository
public interface CashierPayChannelBankDao {
	int deleteByPrimaryKey(String paychannelBankId);

	int insert(CashierPayChannelBank record);

	int insertSelective(CashierPayChannelBank record);

	CashierPayChannelBank selectByPrimaryKey(String paychannelBankId);

	int updateByPrimaryKeySelective(CashierPayChannelBank record);

	int updateByPrimaryKey(CashierPayChannelBank record);
	
	/**
     * 根据平台银行编码获取所有数据
     * @return
     */
    List<String> getAllBankCodePlat();

    /**
     * 获取所有渠道银行
     * @return
     */
    List<CashierPayChannelBank> getAllPayChannelBanks();
    
    List<CashierPayChannelBank> queryPayChannelBankByPage(Map<String, Object> params);

    CashierPayChannelBank getByBankCodePlatAndType(Map<String, Object> params);

    List<CashierPayChannelBank> getByBankCodePlat(String bankCodePlat);
    
    String queryBankNameByCode(String bankCode);
}